package Day2Zuoye;

public class Test5 {
    public static void main(String[] args) {
        String i="戳爷";
        byte[] bytes=i.getBytes();
        int j=bytes.length;
        System.out.println("字节:"+j);
        System.out.println("字符:"+i.substring(0,2)); ;


    }
}
